package com.video.video.domain;

import com.video.common.core.domain.BaseEntity;
import java.math.BigDecimal;
import com.video.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 返佣记录对象 d_commission_record
 *
 * @author ruoyi
 * @date 2022-09-27
 */
public class DCommissionRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 被返佣会员id */
    @Excel(name = "被返佣会员id")
    private String uid;

    /** 返佣的会员id */
    @Excel(name = "返佣的会员id")
    private String coid;

    /** 订单id */
    @Excel(name = "订单id")
    private String oid;

    /** 订单金额 */
    @Excel(name = "订单金额")
    private BigDecimal orderAmount;

    /** 佣金比例 */
    @Excel(name = "佣金比例")
    private BigDecimal commissionRate;

    /** 返佣金额 */
    @Excel(name = "返佣金额")
    private BigDecimal commissionAmount;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setUid(String uid)
    {
        this.uid = uid;
    }

    public String getUid()
    {
        return uid;
    }
    public void setCoid(String coid)
    {
        this.coid = coid;
    }

    public String getCoid()
    {
        return coid;
    }
    public void setOid(String oid)
    {
        this.oid = oid;
    }

    public String getOid()
    {
        return oid;
    }
    public void setOrderAmount(BigDecimal orderAmount)
    {
        this.orderAmount = orderAmount;
    }

    public BigDecimal getOrderAmount()
    {
        return orderAmount;
    }
    public void setCommissionRate(BigDecimal commissionRate)
    {
        this.commissionRate = commissionRate;
    }

    public BigDecimal getCommissionRate()
    {
        return commissionRate;
    }
    public void setCommissionAmount(BigDecimal commissionAmount)
    {
        this.commissionAmount = commissionAmount;
    }

    public BigDecimal getCommissionAmount()
    {
        return commissionAmount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("uid", getUid())
            .append("coid", getCoid())
            .append("oid", getOid())
            .append("orderAmount", getOrderAmount())
            .append("commissionRate", getCommissionRate())
            .append("commissionAmount", getCommissionAmount())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
